<? 
if ($HTTP_POST_VARS['Submit']!="") { 
if ($enviar_senha!=1) {
require "biblioteca/valida.inc";
}else{
require "biblioteca/envia_conta_admin.inc";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/tde_admin.dwt" codeOutsideHTMLIsLocked="false" -->
<?
require "../bibliotecas/diretorio_layout.inc";
require "../bibliotecas/urlibictbdtd.bib";
require "../bibliotecas/idioma_sistema.bib";
require "../bibliotecas/logos.bib";
require "../tde_i18n/texto_".$idioma_sistema.".txt";
?> 
<head>
<!-- InstanceBeginEditable name="doctitle" --> 
<title>| Sistema de Publica&ccedil;&atilde;o Eletr&ocirc;nica de Teses e Disserta&ccedil;&otilde;es | ADMINISTRA&Ccedil;&Atilde;O |</title>
<!-- InstanceEndEditable --> 
<link href="<? echo $diretorio_layout; ?>estilos/estilo_geral.css" rel="stylesheet" type="text/css">
<link href="<? echo $diretorio_layout; ?>estilos/estilo_validacao.css" rel="stylesheet" type="text/css">
<link href="<? echo $diretorio_layout; ?>estilos/estilo_admin.css" rel="stylesheet" type="text/css">
<script language="JavaScript1.2" type="text/javascript" src="<? echo $diretorio_layout; ?>scripts/menu.js"></script>
<?
$script='<script language="JavaScript" src="../tde_i18n/mensagens_js_'.$idioma_sistema.'.js"></script>';
echo $script;
?>
<!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable -->
<meta name="Pragma" content="no-cache">
<meta name="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<table width="100%" height="100%"  border="0" align="left" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="80" align="left" valign="top"><table width="100%" height="80"  border="0" align="left" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="139" height="80" align="center" valign="top"><table width="100%" height="80"  border="0" align="left" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="139" height="60" align="center" valign="middle" bgcolor="#FFFFFF"><a href="<? echo $link; ?>" target="_blank" class="menu"><img src="<? echo $diretorio_layout; ?>imagens/logo_inst.jpg" alt="<? echo $texto; ?>" name="logoInst" width="139" height="60" hspace="0" vspace="0" border="0" id="logoInst"></a></td>
              </tr>
              <tr> 
                <td width="138" height="20" align="left" valign="top"><img src="<? echo $diretorio_layout; ?>imagens/subMenuarr.gif" width="139" height="20" hspace="0" vspace="0" border="0"></td>
              </tr>
            </table></td>
          <td width="32" height="80" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="67" class="menuAdmin"><img src="<? echo $diretorio_layout; ?>imagens/menuSep_admin.gif" name="menuSep" width="62" height="68" hspace="0" vspace="0" border="0" id="menuSep"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td width="100%" height="80" align="left" valign="top"><table width="100%" height="78"  border="0" align="left" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="44" align="left" valign="top"><table width="100%"  border="0" align="left" cellpadding="0" cellspacing="0" class="tituloSistemaInterno">
                    <tr> 
                      <td align="center" valign="middle"> <? echo $txSPETD_T; ?> 
                        <span class="tituloPos"> | <? echo $txAdministracao_T; ?> 
                        |</span></td>
                      <td width="25" height="44" align="left" valign="top" class="menuAdmin"><img src="<? echo $diretorio_layout; ?>imagens/titleSep.gif" width="25" height="44" hspace="0" vspace="0" border="0"></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="34" align="center" valign="top"><table width="100%" height="24" border="0" align="left" cellpadding="0" cellspacing="0" class="menuAdmin">
                    <tr> 
                      <td height="15" align="center" valign="middle">| <a href="javascript:changeMenu(0,'../');" target="_self" class="menu" onMouseOver="javascript:overMenu(0,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        <? echo $txInicio_T; ?> </a> | <a href="javascript:changeMenu(1,'../');" class="menu" onMouseOver="javascript:overMenu(1,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        <? echo $txBusca_T; ?> </a> | <a href="javascript:changeMenu(2,'../');" class="menu" onMouseOver="javascript:overMenu(2,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        </a><a href="javascript:changeMenu(4,'../');" class="menu" onMouseOver="javascript:overMenu(4,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        <? echo $txBiblioteca_T; ?> </a> | <a href="javascript:changeMenu(5,'../');" class="menu" onMouseOver="javascript:overMenu(5,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        <? echo $txAdministracao_T; ?> </a> | <a href="javascript:changeMenu(6,'../');" class="menu" onMouseOver="javascript:overMenu(6,'../');" onMouseOut="javascript:overMenu(5,'../');"> 
                        <? echo $txContato_T; ?> </a> |</td>
                    </tr>
                    <tr> 
                      <td height="9" align="left" valign="top"><img src="<? echo $diretorio_layout; ?>imagens/menuTile_admin.gif" name="menuBar" width="100%" height="9" hspace="0" vspace="0" border="0" id="menuBar"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="100%" align="left" valign="top"><!-- InstanceBeginEditable name="Conteudo da Pagina" -->
     <? if ($sucesso!="") { ?>
      <div><br>
        <table width="70%" height="60" border="0" align="center" cellpadding="5" cellspacing="0" class="loginTable">
          <tr> 
            <td align="center" valign="middle"> 
              <?  echo $sucesso; ?>
            </td>
          </tr>
        </table>
      </div>
      <br>
      <? } ?>
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top"><br>
            <table width="700" border="0" align="center" cellpadding="5" cellspacing="0" class="loginTable">
              <tr> 
                <td width="92%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="67" align="left" valign="top"> <p class="loginTableTitle"><b><? echo $txAdministracao; ?></b>: 
                          <b><? if ($enviar_senha==1) { echo $txEnviarSenha; }else{ echo $txLogin; }?></b> 
                        <p class="txtBold"><? if ($enviar_senha==1) { echo $txEntreLoginParaES; }else{ echo $txLoginParaAdminSist; }?></p>					    
					  <? echo $erro; echo $erro1; echo $erro2; echo $erro3;?>					  
					  </td>
                    </tr>
                    <tr> 
                      <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="txt">
                          <tr> 
                            <td><form name="form1" method="post" action="" onSubmit="return checkForm(this.name); return true;">
                                <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="txt">
                                  <tr> 
                                    <td width="20" height="30" align="center" valign="middle"><img src="../tde_layout1/imagens/arrow.gif" width="7" height="7"></td>
                                    <td width="106" height="30" valign="middle"><b><? echo $txLogin; ?></b> 
                                      <? echo $txDaConta; ?></td>
                                    <td height="30"><input name="cnLogin" type="text" class="req" id="cnLogin" value="<? echo $cnLogin;?>" size="30" maxlength="100"></td>
                                    <td width="60" height="30">&nbsp;</td>
                                  </tr><? if ($enviar_senha!=1) {?>
                                  <tr> 
                                    <td width="20" height="30" align="center" valign="middle"><img src="../tde_layout1/imagens/arrow.gif" width="7" height="7"></td>
                                    <td width="106" height="30" valign="middle"><b><? echo $txSenha; ?></b></td>
                                    <td height="30"><input name="cnSenha" type="password" class="req" size="15" maxlength="30"></td>
                                    <td width="60" height="30">&nbsp;</td>
                                  </tr><? } ?>
                                  <tr>
                                    <td height="30"><input type="hidden" name="enviar_senha" value="<? echo $enviar_senha; ?>"></td>
                                    <td height="30"><a href="../tde_ajuda/ajuda.php"  class="linkpreto" target="_blank"><? echo $txAjuda; ?><img src="../tde_layout1/imagens/ajuda.gif" hspace="3" border="0" align="top"></a> 
                                    </td>
                                    <td height="30" align="right" valign="bottom">
                                      <? if ($enviar_senha==1) {?>
                                      <a href="login.php" class="linkpreto"><? echo $txLoginParaAdminSist; ?> 
                                      &raquo;</a> 
                                      <? } else{ ?>
                                      <a href="login.php?enviar_senha=1" class="linkpreto"><? echo $txEsqueceuSenha; ?></a> 
                                      <? } ?>
                                    </td>
                                    <td height="30" align="left" valign="bottom">&nbsp;</td>
                                  </tr>
                                  <tr> 
                                    <td width="20" height="30">&nbsp;</td>
                                    <td width="106" height="30">&nbsp;</td>
                                    <td height="30" align="right" valign="bottom"><input name="Submit" type="submit" class="botao" value="<? if ($enviar_senha==1) { echo $txEnviar; }else{ echo $txEntrar; } ?> &raquo;"></td>
                                    <td width="60" height="30" align="left" valign="bottom">&nbsp;</td>
                                  </tr>
                                </table>
                              </form></td>
                            <td width="280" align="left" valign="middle"><? echo $txEntreLogin; ?>.</td>
                          </tr>
                        </table></td>
                    </tr>
                </table>
              </tr>
            </table>
          <br></tr>
      </table>
      <!-- InstanceEndEditable --></td>
  </tr>
  <tr>
    <td height="50" align="left" valign="bottom"><table width="100%" height="50"  border="0" align="left" cellpadding="0" cellspacing="0">
        <tr align="right" valign="bottom"> 
          <td width="139" nowrap><table width="139" height="50"  border="0" align="right" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="139" height="33" align="right" valign="middle" class="versao"><br>
                  <? require "../bibliotecas/versao_sistema.bib"; echo $versao ?>
                  | <? echo $txCopyright; ?></td>
              </tr>
            </table></td>
          <td width="100%" valign="middle"><table width="100%" height="50"  border="0" align="right" cellpadding="0" cellspacing="0" class="bttmBar">
            <tr align="center" valign="middle">
              <td width="25%" align="center"><a href="<? echo $link2; ?>" target="_blank" class="menu"><img src="<? echo $diretorio_layout; ?>imagens/logo_tede1.gif" / alt="<? echo $texto2; ?>" height="33" border="0"></a></td>
              <td width="25%" align="center"><a href="<? echo $link3; ?>" target="_blank" class="menu"><img src="<? echo $diretorio_layout; ?>imagens/logo_tede2.gif" / alt="<? echo $texto3; ?>" height="33" border="0"></a></td>
              <td width="25%" align="center"><a href="<? echo $url_bdtd; ?>" target="_blank" class="menu"><img src="<? echo $diretorio_layout; ?>imagens/teses_logo_tede.jpg" alt="<? echo $url_bdtd; ?>" name="bdtdLogo" border="0" id="bdtdLogo"></a></td>
              <td width="25%" align="center" valign="middle"><a href="<? echo $url_ibict; ?>" target="_blank" class="menu"><img src="<? echo $diretorio_layout; ?>imagens/ibict_logo_tede.jpg" alt="<? echo $url_ibict; ?>" name="ibictLogo" border="0" id="ibictLogo"></a></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
